package com.miku.blog.controller;

import com.miku.blog.annotation.SystemLog;
import com.miku.blog.domain.pojo.ResponseResult;
import com.miku.blog.service.TouristService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author shkstart
 * @create ${}YEAR-06-18 4:23
 */
@Api(tags = "访客信息更新")
@RestController
public class TouristController {

    @Autowired
    private TouristService touristService;

    @SystemLog(notes = "更新访客信息")
    @ApiOperation(value = "更新访客信息接口")
    @PutMapping("/tourist/{reportId}")
    public ResponseResult updateTourist(@PathVariable("reportId") Integer reportId){
        return touristService.updateTourist(reportId);
    }

}
